﻿using Product.Domain.Entities;
using Product.Domain.IRepository;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Product.Domain.Services
{
    public class ProductService
    {
        private readonly IProductRepository _productRepository;
        public ProductService(IProductRepository productRepository)
        {
            _productRepository = productRepository;
        }
        /// <summary>
        /// 获取产品列表
        /// </summary>
        /// <returns></returns>
        public async Task<List<TzProduct>> GetProductPageListAsync(RefAsync<int> totalConut, int page, int limit)
        {
            return await _productRepository.GetPageListAsync(totalConut, page, limit);
        }
    }
}
